package com.javajun.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import com.javajun.custom.BaseRepository;
import com.javajun.entity.Customer;
import com.javajun.entity.Enterprise;

@Repository
public interface CustomerRepository extends BaseRepository<Customer, Integer> {

    Page<Customer> findByEnterprise(Enterprise enterprise, Pageable pageable);

    Customer findByUsername(String username);

}
